package com.forestar.mapControl.mapview.mapUtils.bean;

import com.forestar.mapControl.mapview.CacheCanvas;

import java.util.HashSet;

/**
 * created by  xzk
 * 2020/8/11   10:25
 * 说明:  图层，保存当前图层的状态，包括，图层需要的，图层已展示完成的，画布对象，
 */
public class Layer {

    //表示当前图层需要的目标瓦片
    private HashSet<String> screenShowNow = new HashSet<>();
    //表示当前图层已经显示的瓦片
    private HashSet<String> screenHasShow = new HashSet<>();

    //持有的画布
    private CacheCanvas canvasOver;

    public Layer(CacheCanvas canvasOver) {
        this.canvasOver = canvasOver;
    }

    public void setCanvasOver(CacheCanvas canvasOver) {
        this.canvasOver = canvasOver;
    }

    public HashSet<String> getScreenShowNow() {
        return screenShowNow;
    }

    public HashSet<String> getScreenHasShow() {
        return screenHasShow;
    }

    public CacheCanvas getCanvasOver() {
        return canvasOver;
    }

}
